
export default function callWeixinJSbridge(bridgeReady) {
  if (typeof WeixinJSBridge == "undefined"){
    if( document.addEventListener ){
      document.addEventListener('WeixinJSBridgeReady', bridgeReady, false);
    }else if (document.attachEvent){
      document.attachEvent('WeixinJSBridgeReady', bridgeReady);
      document.attachEvent('onWeixinJSBridgeReady', bridgeReady);
    }
  }else{
    bridgeReady();
  }
}

